package com.maychat.mapper;

import com.maychat.pojo.UserContact;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserContactMapper {

    void insertUserContact(UserContact userContact);

    void insertMore(List<UserContact> userContacts);

    void updateUserContactById(UserContact userContact);

    void upsert(UserContact userContact);

    List<UserContact> selectUserContacts(UserContact userContact);

    Integer selectUserContactCount(UserContact userContact);

    void updateByParam(UserContact val, UserContact cond);

    Integer deleteByUIdAndCId(String userId, String contactId);
}
